package com.kitty.listener.event;

import com.kitty.game.role.model.Role;
import com.kitty.game.team.model.Member;
import com.kitty.listener.BasePlayerEvent;
import com.kitty.listener.EventType;
import lombok.Getter;

import java.util.List;

/**离开队伍事件*/
@Getter
public class TeamLeaveEvent extends BasePlayerEvent {
    private Role role;
    /**是否是队长*/
    private boolean isLeader;
    /**成员列表*/
    private List<Member> memberList;

    public TeamLeaveEvent(EventType evtType, Role role, boolean isLeader, List<Member> memberList) {
        super(evtType, role);
        this.role = role;
        this.isLeader = isLeader;
        this.memberList = memberList;
    }
}
